package com.gitee.kamismile.gatewayWeb.component.common;

import com.gitee.kamismile.gatewayWeb.component.server.EnableGateWayWeb;
import com.gitee.kamismile.gatewayWeb.component.server.WebSocketServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.ImportResource;

/**
 * Created by lidong on 2017/2/13.
 */
//@SpringBootApplication
//@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
//@ImportResource("classpath*:config/*.xml")
//@EnableGateWayWeb
////@ComponentScan(basePackages = {"com.gitee.kamismile"})
//@EnableAutoConfiguration(exclude = {org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class,
//        DataSourceAutoConfiguration.class, DataSourceTransactionManagerAutoConfiguration.class})
public class GatewaywebApplication {


    public static void main(String[] args) throws Exception {
        ConfigurableApplicationContext ac = SpringApplication.run(GatewaywebApplication.class, args);
        WebSocketServer wss = ac.getBean(WebSocketServer.class);
        wss.start();
    }

}
